from rest_framework.routers import SimpleRouter
from .views import UserView, SKUSView, AreaView, AddressInfoView, CartView,GoodDetailView, OrderView
from django.urls import path


router = SimpleRouter()
router.register('user', UserView)
router.register('goods/categories', SKUSView)
router.register('areas', AreaView)
router.register('addinfo', AddressInfoView)
router.register('cart', CartView)
router.register('good/sku', GoodDetailView)
router.register('order', OrderView)

urlpatterns = [

]

urlpatterns += router.urls
